package com.ojoin.trade.common_core.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.ojoin.trade.common.utils.LogUtils;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.service.impl.BaseServiceImpl;
import com.ojoin.trade.common_core.web.dao.TbBankDao;
import com.ojoin.trade.common_core.web.domain.TbBank;
import com.ojoin.trade.common_core.web.service.BankBaseService;

@Service
public class BankBaseServiceImpl extends BaseServiceImpl<TbBank> implements
		BankBaseService {

	@Autowired
	private TbBankDao dao;
	
	@Override
	protected BaseDao<TbBank> getBaseDao() {
		return dao;
	}
	
	@Cacheable(value = "enumCache",key="#root.targetClass+#root.methodName")
	@Override
	public  List<TbBank> queryAll() {
		LogUtils.getT0loanLog().info("查询所有银行列表.");
		return getBaseDao().selectAll();
	}

}
